// cover some element-ui styles

.el-button {
  [class^="el-icon-"],
  [class*=" el-icon-"] {
    vertical-align: top;
  }
}

.el-button--default {
  border: 1px solid #082AFF !important;
  border-color: #082AFF !important;
  color: #082AFF !important;

  &:hover {
    border: 1px solid #082AFF !important;
    border-color: #082AFF !important;
    color: #082AFF !important;
    background-color: #e8e8e8 !important;
  }
}

.el-button--primary {
  background-color: #082AFF !important;
  border-color: #082AFF !important;
  color: #fff !important;
  font-weight: 400;
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
}

.el-button--info {
  border-color: #eee;
  font-size: 14px;
  font-family: PingFangSC-Regular, PingFang SC;
  font-weight: 400;
  color: #2A2A2A;
  background: transparent !important;

  :hover {
    color: #2A2A2A !important;
  }
}

.el-button--info.is-plain {
  color: #2A2A2A !important;

  :hover {
    color: #2A2A2A !important;
    border-color: #d3d4d6
  }
}

.el-button.is-disabled {
  color: #CCCCCC !important;
  border-color: #E8E8E8 !important;
  //color: #FFFFFF !important;
  //background-color: #8495ff !important;
  //border-color: #8495ff !important;
}

.el-button--text.is-disabled {
  border: none !important;
}

.el-table .fixed-width .el-button--mini {
  color: #082AFF !important;
}

.el-table {
  border: 1px solid #F0F0F0;
}

.el-input.el-input--small {
  line-height: 30px;
}

.top-search {
  .el-input,
  .el-select {
    width: 240px;
  }

  .el-date-editor--daterange.el-input__inner {
    width: 240px;
  }
}

.el-tag + .el-tag {
  margin-right: 10px;
}

.el-tag:nth-of-type(2) {
  margin-left: 10px;
}

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block;
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-table {
  background-color: transparent;
}

.el-table__body {
  border-spacing: 0 !important;
}

.el-table .el-table__header-wrapper th,
.el-table .el-table__fixed-header-wrapper th,
.el-table .el-table__header-wrapper tr {
  background-color: transparent;
}

.el-table .el-table__body-wrapper tr {
  box-shadow: 0px 0px 2px 0px #f0f0f0;
  height: 40px;
}

.el-table th.el-table__cell.is-leaf, .el-table td.el-table__cell {
  border-bottom: none !important;
}

.el-table th.is-leaf,
.el-table td {
  border-bottom: 0;
}

.el-table tr td {
  &:first-child,
  &:last-child {
    border-radius: 4px;
  }
}


.el-form-item {
  margin: 0 !important;
  padding: 10px;
}

// .el-form-item__label {
//   margin-right: 16px;
// }
// .el-form-item__error {
//   position: absolute;
//   top: 100%;
//   left: 16px;
// }

.el-switch.is-checked .el-switch__core {
  border-color: #082AFF !important;
  background-color: #082AFF !important;
}

.el-radio__input.is-checked + .el-radio__label {
  color: #082AFF;
}

.el-radio__input.is-checked .el-radio__inner {
  border-color: #082AFF;
  background: #082AFF;
}

.el-radio__input.is-disabled .el-radio__inner {
  background-color: #cccccc;
  border-color: #cccccc;
  cursor: not-allowed;
}

.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #082AFF;
  color: #ffffff;
}

.el-checkbox__input.is-checked .el-checkbox__inner {
  background-color: #082AFF;
  border-color: #082AFF;
}

.el-checkbox__input.is-indeterminate .el-checkbox__inner {
  background-color: #082AFF !important;
  border-color: #082AFF !important;
}

.el-checkbox__input.is-checked + .el-checkbox__label {
  color: #082AFF;
}

.el-tag {
  color: #082AFF !important;
  background-color: #EBEFFF !important;
  border-color: #082AFF !important;
}

.el-dropdown {
  color: #606266;
  font-size: 14px !important;
}

.el-dropdown-menu {
  :hover {
    color: #082AFF !important;
    background-color: #EBEFFF !important;
  }

  font-size: 12px;
}

.vue-treeselect__control {
  height: 32px !important;
}

.vue-treeselect__multi-value-item {
  color: #082AFF !important;
  background-color: #EBEFFF !important;
}

.vue-treeselect__value-remove {
  color: #082AFF !important;
  background-color: #EBEFFF !important;
}

.vue-treeselect__value-remove > svg {
  color: #082AFF !important;
  background-color: #EBEFFF !important;
}

.vue-treeselect__multi-value {
  color: #082AFF !important;
}

input[type="checkbox"]:checked::after {
  color: #082AFF !important;
}

.el-checkbox-button {
  color: #082AFF !important;
  border-left-color: #082AFF !important;
  border-color: #082AFF !important;
  background-color: #EBEFFF !important;

  &:hover {
    background-color: #EBEFFF !important;
  }
}

.el-checkbox-button.is-checked {
  color: #082AFF !important;
  border-left-color: #082AFF !important;
  border-color: #082AFF !important;
  background-color: #EBEFFF !important;

  &:hover {
    background-color: #EBEFFF !important;
  }
}

.el-checkbox-button.is-checked .el-checkbox-button__inner,
.el-checkbox-button .el-checkbox-button--small,
.el-checkbox-button .el-checkbox-button--small .is-focus,
.el-checkbox-button .el-checkbox-button--small .is-checked,
.el-checkbox-button.is-checked,
.el-checkbox-button .el-checkbox-button--small .is-checked .is-focus,
.el-checkbox-button__original {
  color: #082AFF !important;
  border-color: #082AFF !important;
  background-color: #EBEFFF !important;
  box-shadow: -1px 0 0 0 #EBEFFF !important;

  &:hover {
    background-color: #EBEFFF !important;
  }
}

.el-checkbox-button__inner {
  &:hover {
    color: #082AFF !important;
    background-color: #EBEFFF !important;
  }
}

.el-checkbox-button.is-focus .el-checkbox-button__inner {
  color: #082AFF !important;
  border-color: #082AFF !important;
}

.el-input__inner {
  border: 1px solid #eee;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 3px;
}

.el-dialog__body {
  padding: 20px 20px;
}

.el-dialog__header {
  width: 100%;
  background: #EEEEEE;
  padding: 10px 20px;
  border-radius: 4px;
}

.el-dialog__headerbtn {
  position: absolute;
  top: 15px;
  right: 20px;
  padding: 0;
}

.el-dialog__title {
  font-weight: 700;
  font-size: 16px;
}

.el-date-editor--datetimerange.el-input, .el-date-editor--datetimerange.el-input__inner {
  border: 1px solid #EEEEEE;
  border-radius: 5px;
}

.el-button--cyan {
  background-color: #082AFF !important;
  border-color: #082AFF !important;
  color: #ffffff;
}

.el-tabs__nav-wrap::after {
  height: 1px;
  background: #EEEEEE;
}

.el-pagination {
  font-weight: normal !important;
}

.el-tabs__item {
  padding: 12px 16px;
  height: auto;
  line-height: normal;
  color: #999999;
}

.el-tabs--top .el-tabs__item.is-top:nth-child(2) {
  padding-left: 12px;
}

.el-tabs--top .el-tabs__item.is-top:last-child {
  padding-right: 12px;
}

.el-tabs__item.is-active {
  border-bottom: 2px solid #082AFF;
}

.el-tabs__active-bar {
  height: 0;
}

.el-cascader__tags .el-tag .el-icon-close {
  background-color: transparent;
  color: #FB9981;

  &:hover {
    background-color: transparent;
    color: #FB9981;
  }
}
